package com.hm.ipay.dao;

import com.hm.ipay.domain.AccountTotal;
import com.hm.ipay.entity.UserAccount;

import java.util.List;
import java.util.Map;

public interface UserAccountMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserAccount record);

    Long insertSelective(UserAccount record);

    UserAccount selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserAccount record);

    int updateByPrimaryKey(UserAccount record);

    UserAccount selectByTel(String tel);

    UserAccount selectByInviteCode(String inviteCode);

    List<UserAccount> selectAllAccount(Map map);

    int countAllAccount(Map map);

    List<UserAccount> selectCreditAccount();

    AccountTotal accountTotal();

    List<UserAccount> primaryList(Long id);

    List<UserAccount> secondaryList(Long id);

    int secondaryCount(Long id);

    void setRegId(Map map);
}